package dto;

import exception.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**新增/编辑课程教师参数模型
 * @author xiehaidong
 */
@Data
@ApiModel(value = "新增/编辑课程教师模型")
public class SaveCourseTeacherDto {
    private Long id;

    private Long courseId;

    /**
     * 教师姓名
     */
    @ApiModelProperty(value = "教师姓名",required = true)
    @NotEmpty(message = "教师姓名不能为空",groups = {ValidationGroups.insert.class})
    private String teacherName;

    /**
     * 教师职位
     */
    @ApiModelProperty(value = "课程职位",required = true)
    @NotEmpty(message = "课程职位不能为空",groups = {ValidationGroups.insert.class})
    private String position;

    /**
     * 教师简介
     */
    private String introduction;

    /**
     * 照片
     */
    private String photograph;
}
